import request from '@/utils/request'

// 封装图片验证码
export const Imgvalidate = (random) => {
  // console.log('调用了这个接口')
  // console.log(random)
  return request.get(`/api/user-service/user/imageCode/${random}`)
}
// 封装登录接口
export const login = (obj) => {
  return request.post('/api/user-service/user/login', obj)
}
// 获取用户信息接口
export const getUsers = (obj) => {
  // console.log('调用了用户信息接口')
  // console.log(obj)
  return request.get(`/api/user-service/user/${obj}`)
}
